<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('人员信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>收货人员：</label>
                                <input type="text" name="personName"/>
                            </li>
                            <li>
                                <label>收货人员电话：</label>
                                <input type="text" name="personTele"/>
                            </li>
                            <li>
                                <label>收货人微信号码：</label>
                                <input type="text" name="personWeixin"/>
                            </li>
                            <li>
                                <label>客服(管理人员)：</label>
                                <input type="text" name="userName"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:data:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:data:remove')}]];
        var prefix = ctx + "system/data";

        $(function() {
            var options = {
                url: prefix + "/requireList",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "人员信息",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '主键id',
                    visible: false
                },
                {
                    field: 'personName',
                    title: '收货人员'
                },
                {
                    field: 'personTele',
                    title: '收货人员电话'
                },
                {
                    field: 'personWeixin',
                    title: '收货人微信号码'
                },
                {
                    field: 'address',
                    title: '收货地址'
                },
                {
                    field: 'userName',
                    title: '客服(管理人员)'
                },
                {
                    field: 'createTime',
                    title: '创建时间'
                }]
            };
            $.table.init(options);
        });

        function submitHandler() {
            if ($.validate.form()) {
                var rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
                var data = {"ids": rows.join()};
                $.operate.save(prefix + "/require", data);
            }
        }
    </script>
</body>
</html>